package com.mnsq.subject.bean.condition;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.mnsq.common.bean.condition.CommonBaseCondition;
import com.mnsq.common.bean.entity.subject.UserCollect;
import com.mnsq.common.deserializer.TypeDeserializer;
import lombok.Data;

/**
 * @author 周俭
 */
@Data
public class CollectCondition extends CommonBaseCondition<UserCollect> {
    private Long userId;
    private String resourceUnique;
    private String title;
    @JsonDeserialize(using = TypeDeserializer.class)
    private Integer type;

    @Override
    public UserCollect getInstance() {
        return new UserCollect();
    }

    @Override
    public boolean isEmpty() {
        return false;
    }
}
